package com.mars.basic.convert;


import com.mars.basic.allmain.entity.AdminUserEntity;
import com.mars.basic.allmain.po.AdminUser;
import com.mars.common.convert.IEntityPOConvert;
import com.mars.common.utils.Beans;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

@Component
@Lazy
public class AdminUserConvert implements IEntityPOConvert<AdminUserEntity,AdminUser> {
    @Override
    public AdminUserEntity toEntity(AdminUser u) {
        return Beans.mapper(u, AdminUserEntity.class); }

    @Override
    public AdminUser toPo(AdminUserEntity e) {
        return Beans.mapper(e,AdminUser.class);
    }
}
